import Login from '@/components/login.vue';
import Index from '@/components/index.vue';
import User from '@/components/view/system/user/user.vue';
import StatisticalSummary from "@/components/view/statisticalSummary.vue";
import Tenement from '@/components/view/system/tenement/tenement.vue';
import Permission from "@/components/view/system/permission/permission.vue";
import Menu from '@/components/view/system/menu/menu.vue';
import Department from "@/components/view/system/department/department.vue";
import Role from '@/components/view/system/role/role.vue';
import Label from "@/components/view/system/label/label.vue";
import Log from "@/components/view/system/log/log.vue";

// 路由页面地址数组
const routes = [
    {path: "/", redirect: "/login"}, // 默认
    {path: "/login", component: Login},
    {
        path: "/index", component: Index, children: [
            {path: "/index/StatisticalSummary", component: StatisticalSummary}, // 统计摘要
            {path: "/index/user", component: User}, // 用户管理
            {path: "/index/tenement", component: Tenement}, // 租户管理
            {path: "/index/permission", component: Permission}, // 权限管理
            {path: "/index/menu", component: Menu}, // 菜单管理
            {path: "/index/department", component: Department}, // 部门管理
            {path: "/index/role", component: Role}, // 角色管理
            {path: "/index/label", component: Label}, // 角色管理
            {path: "/index/log", component: Log} // 角色管理
        ]
    },
]

export default routes;